<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增渠道分析管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cooperationDataManagement-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">资源：</label>
                <div class="col-sm-8">
                    <input name="resource" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">渠重率：</label>
                <div class="col-sm-8">
                    <input name="channelRepetitionRate" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">id删除率：</label>
                <div class="col-sm-8">
                    <input name="idDelRate" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开口率：</label>
                <div class="col-sm-8">
                    <input name="openMouthRate" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">资源折扣率：</label>
                <div class="col-sm-8">
                    <input name="resourceRebateRate" class="form-control" type="text">
                </div>
            </div>

          <!--  <div class="form-group">
                <label class="col-sm-3 control-label">平台名称：</label>
                <div class="col-sm-8">
                    <select name="platformName" class="form-control" >
                        <option value="抖音">抖音</option>
                        <option value="视频号">视频号</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">渠道类型：</label>
                <div class="col-sm-8">
                    <input name="channelType" class="form-control" type="text">
                </div>
            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">加粉方案：</label>
                <div class="col-sm-8">
                    <input name="addPowderPlan" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否测试：</label>
                <div class="col-sm-8">
                    <select name="testFlag" class="form-control" >
                        <option value="否">否</option>
                        <option value="是">是</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="createTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "bajiaostar/cooperationDataManagement"
        $("#form-cooperationDataManagement-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-cooperationDataManagement-add').serialize());
            }
        }
        $("input[name='createTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>